<?php
/**
 * @file Registry.php
 *
 * Registry for global settings.
 *
 * Like every registry this class can contain variables / settings that have
 * global scope. It should be used by it's
 *
 * http://code.google.com/p/rpd/wiki/Registry
 *
 * New BSD License
 * \n
 * Copyright (c) 2010 Rpd-Team
 *
 * @namespace  rpd
 * @since      0.0.1
 * @version    0.0.1
 */

/**
 *
 */

class Registry {
	protected static $List;

	public static function get($name) {
		return self::$List[strtolower($name)];
	}

	public static function set($name, $value) {
		self::$List[strtolower($name)] = $value;
	}

	public static function prepend($name, $value)
	{
		$name = strtolower($name);
		self::$List[$name] = array_merge((array) $value, self::$List[$name]);
	}
}

?>